package com.wanmait.gohome.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.gohome.mapper.MarkMapper;
import com.wanmait.gohome.pojo.Mark;
import com.wanmait.gohome.service.MarkService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class MarkServiceImpl implements MarkService {
    @Resource
    private MarkMapper markMapper;
    @Override
    public void insert(Mark object) {

    }

    @Override
    public void update(Integer id) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public List<Mark> findAll() {
        return null;
    }


    @Override
    public Mark findById(Integer id) {
        return null;
    }

    @Override
    public PageInfo<Mark> findPage() {
        return null;
    }

    @Override
    public List<Mark> findAll(Mark object) {
        return null;
    }

    @Override
    public PageInfo<Mark> findPage(Mark object) {
        return null;
    }

    @Override
    public List<Mark> selectAll() {
        List<Mark> marks = markMapper.findAll();
        return marks;
    }

    /**
     * 显示mark里面的状态
     * @return
     */
    @Override
    public List<Mark> selectTitle() {
        List<Mark>marks=markMapper.selectTitle();
        return marks;
    }
}
